package org.example.service.impl.impl;

import jakarta.annotation.Resource;
import org.example.mapper.GetDailyMapper;
import org.example.pojo.DailyPassengerCount;
import org.example.pojo.MonthPassengerCount;
import org.example.service.impl.PassengerCountService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PassengerCountImpl implements PassengerCountService {

    @Resource
    GetDailyMapper getDailyMapper;

    @Override
    public List<DailyPassengerCount> getDaily() {
        return getDailyMapper.getDaily();
    }

    @Override
    public List<MonthPassengerCount> getMonthly() {
        return getDailyMapper.getMonthly();
    }
}
